<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="1" skipped="0" tests="1" time="6.051" timestamp="2024-06-02T18:13:50.069590" hostname="MacBook-Air-3.local"><testcase classname="test_case.test_baidu" name="test_baidu_case01" time="5.797"><failure message="AssertionError: assert '狗狗币_百度搜索' == '11111'&#10;  &#10;  - 11111&#10;  + 狗狗币_百度搜索">browser = &lt;selenium.webdriver.chrome.webdriver.WebDriver (session="0468220c242cbee0676a210d0483f182")&gt;

    def test_baidu_case01(browser):
        driver = browser
        driver.get("http://www.baidu.com")
        sleep(1)
        # driver.find_element(by=By.ID, 'kw').send_keys("")
        driver.find_element(By.ID, 'kw').send_keys("狗狗币")
        sleep(1)
        driver.find_element(By.ID, 'su').click()
&gt;       assert driver.title == "11111"
E       AssertionError: assert '狗狗币_百度搜索' == '11111'
E         
E         - 11111
E         + 狗狗币_百度搜索

test_case/test_baidu.py:14: AssertionError</failure></testcase></testsuite></testsuites>